﻿using Microsoft.Extensions.DependencyInjection;
using System;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.Modularity;
using WenABP.Customer.Domain;

namespace WenABP.Customer.EntityFrameworkCore
{
    [DependsOn(typeof(WenABPCusomerDomainMoudule))]
    public class WenABPCustomerEFCoreModule:AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.AddAbpDbContext<CustomerDbContext>(options=> 
            {
                options.AddDefaultRepositories();
            });

            Configure<AbpDbContextOptions>(options =>
            {
                options.UseMySQL();
            });
        }
    }
}
